<%@page import="bean.MemberShipDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link rel="stylesheet" href="/TestWeb/css/memberShip.css">
<script src='/TestWeb/js/main.js'></script>
<title>memberShip</title>
</head>
<body>
	<%
		request.setCharacterEncoding("utf-8");
	%>
	<jsp:useBean id="login" class="bean.MemberShipVo" scope="page" />
	<jsp:setProperty property="*" name="login" />
	<%
		MemberShipDTO dto = new MemberShipDTO();
	%>
	<div id="memberShip_title">
		<h1>회원 가입</h1>
	</div>
	<form method='post' name='ff' action='index1.jsp?inc=./Community/m_f_memberShip.jsp'>
		<div class="line">
			ID:<input type='text' name='mid' value="<%=login.getMid()%>"/> 
			<input type='button' value='중복 검사' id="line1" onclick="check()"/><br/>
				<%
				if(!(login.getMid().equals(""))){
					if(dto.check(login.getMid())){
						%><div style="color: red;">불 가능한 아이디 입니다.</div> <%
						//out.print("불 가능한 아이디 입니다.");
					}else{
						%><div style="color: blue;">가능한 아이디 입니다.</div> <%
						//out.print("사용 가능한 아이디 입니다.");
					} 
				}
				else{
						
				}
				 
				%>
			
		</div>
		<br />
		<div class="line">
			비밀번호:<input type='password' name='pwd' id="pwd" /><br />
		</div>
		<br />

		<div class="line">
			이름:<input type='text' name='irum' id='irum' /><br />
		</div>
		<br />

		<div class="line">
			생년월일:<input type='date' name='bir' id="datepicker" /><br />
		</div>
		<br />

		<div class="line">
			연락처:<input type='text' name='phone' id="phone" /><br />
		</div>
		<br />

		<div class="line">
			이메일:<input type="text" name="email" id="email" placeholder="직접 입력">
		</div>
		<select name="selectEmail" id="lines">
			<option>직접입력</option>
			<option>naver.com</option>
			<option>google.com</option>
			<option>daum.net</option>
		</select> <br />

		<div class="line">
			주소:<input type='text' name='address' id='address' /><br />
		</div>
		<br />

		<div class="line">
			비밀번호 질문:<select name='quetion' size='1' id="question">
				<option value='1'>가장 좋아하는 색깔은?</option>
				<option value='2'>가장 좋아하는 계절은?</option>
				<option value='3'>가장 좋아하는 음식은?</option>
				<option value='4'>가장 좋아하는 배우는?</option>
			</select>
		</div>
		<br />

		<div class="line">
			비밀번호 답변:<input type='text' name='answer' id='answer' /><br />
		</div>
		<br/><br/><br/><br/><br/><br/><br/><br/>
		<br/><br/><br/><br/><br/>
		<br /> <input type='button' value='회원등록' id='btnSave_m' />
	</form>

	<form name='hidf' method='post'>
		<input type='hidden' name='mid' id='mid' value=""/>
		<input type="hidden" name='' />
	</form>
	<script>
		membership();
	</script>
</body>
</html>